ObjectDB Database Search

1-50 of 118 results

Failed to enhance dynamic type

to generate dynamic type com.quasado.galaxy.foundation.api.language.LanguageContext I am curious why he does even try to generate dynamic type?? Can he simply ignore such things and enhance ... to overcome this by generating a dynamic synthetic type. Usually it succeed but in some cases it fails

Database Transaction Replayer

tool can apply recorded database operations to a matching database backup , if available ... of files: Backup files, with names in the format .odb Recording files, with names in the format .odr A backup file is a standard ObjectDB database file that reflects the state of the database at the end

Bad Backups – Null Error when issuing simple query on backup via ObjectDB Explorer

I have attempted to access two different backups that were taken by ObjectDB’s internal backup API ... the relevant content, i.e. the History instances. Could you please try: opening the backup files using ... specific backups ? Are other similar backups OK? Does it happen only in the Explorer or

JPA Query API

because it introduces the Country class to ObjectDB. Dynamic JPQL, Criteria API, and named queries In ... dynamic query construction because you can build the query string dynamically at run time. The JPA Criteria API provides an alternative way to build dynamic queries. It uses Java objects that represent

user defined backup target

Dear objectdb Team 1. I could not find a way, to declare the name of the backup -file ... the database - file: Query backupQuery = em.createQuery("objectdb backup "); backupQuery.setParameter("target", new java.io.File("c:\\ backup ")); backupQuery.getSingleResult(); The code above, for instance

Incremental online backup

Hello, Are there plans for ObjectDB to handle incremental online backups , where a backup does not create a whole new copy of the DB, but "updates" an existing backup ? This behavior would make backups much faster as only a portion of the data would need to be copied. Such a feature would also allow

Failed to read DB file while online backup is running

and also write) failed with an exception during an online backup of the same DB file was running and was close ... related anymore to running of online backups . Maybe some new bug was added to the code ... (JdoQuery.java:748)     jakab Gergely Jakab Build 2.6.2_05 changed only online backup code

Catching exceptions from online backup

Hello, I have a request for improvement in the area of backuping . For catching the exceptions during online backups , I am using the solution suggested in the post  2786 Well not exactly ... we would like } ) ; // Wait until the backup is completed. try {     backupThread

Online backup problem

Hi, We are trying to create a servlet that performs database online backup . Unfortunately, even though no exception is thrown, backup files aren't created. When I turn on DEBUG logging in ODB, I ... ) and it doesn't seem to be related to the online backup . Please post the code that you are using to run

Online Backup in client-server mode

Hello, we have issue with online- backup when using client-server mode. It seems, that it is working the following way. When we run the backup , server is creating tmp file for whole database ... . Can it be improved? In my opinion the server proces should handle whole backup proces and do it as

Backup file always bigger than live db file

I use em.createQuery("objectdb backup ", Thread.class);  to backup hourly.  And the backup file is always getting bigger even if the db file is not getting bigger.  Why is that? Trianglehead Json Error Does the database file itself remain the same size? Is the backup size different

How to restore the offline backup

dear sir/mam,   kindly assist how to restore the backup   ayugoyal13 Ayush Goyal An ObjectDB backup is a valid database itself. Just replace the database file with the backup file. support ... how can i replace the backup file with the previously used file which is in use ? kindly help

How to do an Offline Database Backup?

thread titled, "Sample JDO Architecture for Follow Up Questions".   I desire offline backups .  ... connections until the backup is complete.  How can I guarantee that a database is no longer being used ... datastore file backup which guarantees the file will not be corrupted? CBE CBE You should close

exception during online backup

hi   from time to time i get exception during online backup in server/client config ... backup "); backupQuery.execute(); but this is not an urgent functionality for us br Tomasz Tomasz Wozniak Thank you for your report. I will try to reproduce it by a test that uses online backup

Online backup in embedded mode fails

Hi, As in topic. "online backup " fails when executed in embedded mode. Everything works fine with server mode. java.lang.NullPointerException at com.objectdb.o.BAC. (BAC.java:63) at com.objectdb.o.MST.U4(MST.java:1764) at com.objectdb.o.MST.U3(MST.java:1745) at com.objectdb.o.WRA.U3(WRA.java:498

JPA Extended API Reference Guide

dynamically , build type-safe queries, and optimize database fetching. Lists additional dynamic

JPA Named Queries

A named query is a statically defined query with a predefined, unchangeable query string. Using named queries instead of dynamic queries can improve code organization by separating JPQL query ... literals dynamically into the query string, which results in more efficient queries. @NamedQuery

Database Management Settings

. Recording can also be useful for backups and for debugging because it allows you to reproduce problems by ... " ) specifies which operations to record. For backups , you only need to record "write" operations

JPA Criteria Query Expressions

Jakarta Persistence (JPA) Criteria API uses a hierarchy of interfaces to model query conditions and selections, enabling the construction of dynamic , type-safe queries. These interfaces represent the building blocks for defining query logic programmatically. The hierarchy of the expression

JPA Queries

Jakarta Persistence provides powerful APIs for executing database queries using JPQL strings or the programmatic Criteria API. These interfaces support both static and dynamic query construction with full type safety. General query objects Execute SELECT, UPDATE and DELETE queries in JPA using

JPA Runtime Tuning & Configuration

Most Jakarta Persistence configuration is static, defined through annotations (e.g., @Entity , @Table ) or set globally at the persistence unit level during bootstrapping . This section describes dynamic options that control runtime behavior and allow you to adjust settings per session, query, or

JPA Criteria Queries

The Jakarta Persistence (JPA) Criteria API provides a type-safe, programmatic alternative to string-based JPQL for constructing dynamic queries, ensuring compile-time safety and facilitating easier refactoring. It defines a structured hierarchy of interfaces for SELECT, UPDATE, and DELETE

JPA Metamodel and Graphs

The Jakarta Persistence (JPA) Metamodel API provides a type-safe way to introspect the persistent object model at runtime. It allows developers to programmatically examine entities, embeddables, and their attributes to build dynamic queries and validate persistence structures. The Metamodel Access

Database Doctor

. We also recommend that you regularly validate production database files (or their backups ) by running

Dynamic Metadata (JDO 3.0)

JDO 3 introduces the ability to specify and query metadata of persistable types dynamically . ObjectDB 2 supports specifying metadata by: JPA XML Mapping Metadata JPA Annotations JDO XML Metadata (e ... at build time. Dynamic metadata enables specifying metadata at runtime, for example, for dynamically

user defined backup file

We need a way to do a (online) backup to a user defined backup -destination. Maybe in that way: backupQuery.setParameter("targetfile", new java.io.File("/User/ Backup /test.objectdb")); which should create a backupfile with the name ' test.objectdb " in the directory ' /User/ Backup / ' or backupQuery

Step 1: Create a Java EE 6 Web Project

We start by creating a new Java EE dynamic web project in Eclipse: Open the [New Project] dialog box, e.g. by using File New Project... Select Web Dynamic Web Project and click Next . Choose ... dynamic web project. To add ObjectDB/JPA support to the project, drag the objectdb.jar file from

Online Backup

An ObjectDB database file can be backed up simply by copying the file (with the associated recovery file if exists). This should only be done when the database is closed. Online backup will enable backup also when the database is open and in use. support Support Online backup  is now implemented in ObjectDB 2.1. support Support

Vacuum - Reclaiming Unused Space In Odb

?  The online backup feature appears to copy the dead space as well so isn't performing ... We are trying to optimize the database size due to the time it takes to perform an online backup for large databases.  Our organization requires daily backups on our data and we have a limited

jakarta.persistence.EntityManager

mutable EntityGraph , allowing dynamic definition of an entity graph. Parameters: rootType - class

Step 1: Create a Maven Web Project

We start by creating a new Maven-WTP dynamic web project in Eclipse: Open the [New Project] dialog box, e.g. by using  File New Project... Select  Maven Maven Project and click  ... stop Guestbook Now you should have a Maven based Eclipse dynamic web project (WTP) with Spring MVC

Consequence of lost ODB$ Files?

Hi, We use the Object DB backup utility for most of our backups , however we also do file system backups . Recently our file system backups have been failing because the .odb$ (write files) have been removed, by the DB Server, during the backup .  My question is that if we have a good

Database is locked when in use

a database when it is in active use is unsafe. With ObjectDB 2.x you should use online backup  for this purpose. support Support Thanks for the reply. I went through the online backup web page ... the follwoing code     query.setParameter("target", new java.io.File("c:\\ backup ")); And i

High availability and other pratical questions

; Does DB backup backs all objects including indexes? If yes, is there a way to backup data only? And. is there a way to backup specific entities only? What is the overhead of online backup ... this feature is released). Currently ObjectDB online backup backs up the entire database including

Some technical questions

transaction either commits or rolls back? Since ObjectDB implements online backups , does it implement something like MVCC, so it can see the data at the time the backup was started (to have consistent backup data)?  Thanks Andrej   andrej Andrej Gabara E.g. in one transaction I change

ClassCastException on closing PersistenceManager

(although the Doctor was saying the Db file has no errors) with an older backup and the code was running ... , so restarting your application with the same database (instead of a backup database) should be safe. support ... again to a working backup of the DB. It is quite alarming. jakab Gergely Jakab I just read ur answer

jakarta.persistence.EntityManager.createEntityGraph(Class)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager EntityGraph createEntityGraph (    Class rootType ) Create a new mutable EntityGraph , allowing dynamic definition of an entity graph. Parameters: rootType - class of entity graph Returns: entity graph. Since: Jakarta Persistence (JPA) 2.1

after upgrade to 2.9.0 database destroys, urgent issue at our most important customer, production shutdown

a way that requires switching to a backup database. However, if you send the original database, not ... that runs automatic backup daily (and if possible several times every day) and then checks the backup ... on fixing it. By checking backup copies using the Doctor you can at least tell whether there is a database

InternalException when reading a HashMap

the DB file. We were then searching for backups of the database which would still work and found out that the latest backup which works is the one just before the first report of "Too many persistable ... earlier next time.   jakab Gergely Jakab Hi, Usually running the Doctor on every backup

ObjectDB within a resource adapter module and Java EE Connector Architecture

: https://stackoverflow.com/questions/8784302/ dynamic -persistencecontext-unitname-attribute-for-container-based-entitymanager https://stackoverflow.com/questions/9957179/jpa- dynamic -persistence-unit-name https://stackoverflow.com/questions/33790875/how-to- dynamically -modifying-unitname-in

Dont want to use Proxy Class

dynamic type objectdb.java.util.ArrayList...". From Objectdb developer's guide, this kind ... is that all the necessary classes will be available at build time. Therefore, using defineClass dynamically by ObjectDB ... file to eliminate the need of dynamic class generation. support Support

Multi-tenant setup

request to appropriate database, how to dynamically add new database or schema. There are lot ... of entity managers in Java EE and JPA is static. ObjectDB supports a dynamic  schema, if your application generates entity classes dynamically (e.g. using CGLIB, javassist, asm, bcel

Enhancer failure: Failed to process class file of type

to generate dynamic type jdk.internal.reflect.SerializationConstructorAccessorImpl     ... .objectdb.o.UserException: Failed to generate dynamic type jdk.internal.reflect.ConstructorAccessorImpl

DB Explorer and Doctor unable to open DB file

.objectdb.o.UserException: Failed to generate dynamic type quant.phdsc_new.placement_builder.data.RackModel ... to generate dynamic type quant.phdsc_new.placement_builder.data.RackModel (error 361)  

JRebel integration feature

Feature request: Dynamic class enhancement during development compatible with JRebel. dmoshal David Moshal ObjectDB 2 supports dynamic enhancement using a Java Agent. Please try it and see if it is compatible with JRebel. support Support I would like to support this ambitious feature request. I

ClassCastException on SELECT NEW ... after UPDATE over Java RMI

SET r.notes=r.notes WHERE r.id IN (1L) Obviously this is a bug. ObjectDB supports dynamic types (in order to support dynamic type languages in the future), but this is currently not in use

ObjectDB Enhancer Tool in Java 9

to generate dynamic type jdk.internal.reflect.SerializationConstructorAccessorImpl at com.objectdb.o ... :436) ... 2 more Caused by: com.objectdb.o.UserException: Failed to generate dynamic type jdk

missing merger

, could that be the problem ? Here the link tot he backup of this night, no doctor done on that https://www.dropbox.com ... Zwicker Some initial observations: Running the Doctor on the database at #4 (yesterday's backup ... Hans-Georg Zwicker Copies of the databases before (latest backup ) and after the exception will help

InternalException caused by OOM: Metaspace

.objectdb.o.InternalException: com.objectdb.o.UserException: Failed to generate dynamic type objectdb.java.util.ArrayList com.objectdb.o.UserException: Failed to generate dynamic type objectdb.java ... ) when ObjectDB is trying to generate a dynamic wrapper class for ArrayList ( objectdb.java.util.ArrayList

Compare two schemas or odb files

For example, if we make a backup of our database it would be helpful to have the possibility to compare the backup schema (odb file) with the current version in the database and as result ... graphs stored in the db with old graphs from backup db. wua Andreas Wurm